<?php
namespace app\controller;

use app\Request;
use hg\apidoc\annotation as Apidoc;

class User extends Common
{
    /**
     * @Apidoc\Title("引入模型注释")
     * @Apidoc\Desc("param参数为直接引用模型参数；return则是引用逻辑层，通过逻辑层引用模型参数")
     * @Apidoc\Url("/v1/baseDemo/model")
     * @Apidoc\Method("GET")
     */
    public function login()
    {
        return '登录接口' . url(Request()->pathinfo())->domain(true)->root('/');
    }
}